import styled from 'styled-components'

export const HomeWrapper = styled.div`
  overflow: hidden;
  width: 960px;
  margin: 0 auto;
`

export const HomeLeft = styled.div`
  float: left;
  width: 625px;
  margin-left: 15px;
  padding-top: 30px;
  .banner-img{
    width: 625px;
    height: 270px;
  }
`

export const HomeRight = styled.div`
  float: right;
  width: 280px;
`

export const TopicWrapper = styled.div`
  overflow: hidden;
  padding: 20px 0 10px 0;
  margin-left: -18px;
`

export const TopicItem = styled.div`
  float: left;
  height: 32px;
  line-height: 32px;
  padding-right: 10px;
  margin-left: 18px;
  margin-bottom: 18px;
  background:#f7f7f7;
  font-size:14px;
  color:#000;
  border:1px solid #dcdcdc;
  border-radius: 4px;
  cursor: pointer;
  .topic-pic{
    display: block;
    float:left;
    width: 32px;
    height: 32px;
    margin-right: 10px;
  }
  &:last-child{
    border: none;
    background: none;
    color: #787878;
  }
`

export const ListItem = styled.div`
  position: relative;
  padding: 20px 0;
  border-top: 1px solid #f0f0f0;
  .list-pic{
    position:absolute;
    right: 0;
    bottom: 50%;
    margin-bottom: -50px;
    display:inline-block;
    width: 125px;
    height: 100px;
    &.no-pic{
      display: none;
    }
  }
`

export const ListInfo = styled.div`
  box-sizing: border-box;
  padding-right:140px;
  &.no-pic{
    padding: 0;
  }
  .title{
    font-size: 18px;
    font-weight: bold;
    line-height: 27px;
    color: #333;
  }
  .content{
    font-size: 14px;
    line-height: 24px;
    color: #999;
  }
`

export const RecommendWrapper = styled.div`
  width: 100%;
  margin: 30px 0 15px 0; 
`

export const RecommendItem = styled.div`
  width: 100%;
  height: 50px;
  margin-bottom: 5px;
  background: url(${(props) => props.imgUrl});
  background-size: contain;
`

export const AppQRDown = styled.div`
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  padding:10px 22px;
  margin-bottom: 30px;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  background-color: #fff;
  .qrcode{
    width: 60px;
    height: 60px;
    opacity: .85;
    vertical-align: middle;
  }
  .info{
    display:inline-block;
    vertical-align: middle;
    margin-left: 7px;
    .title{
      font-size: 15px;
      color: #333;
    }
    .desc{
      margin-top: 7px;
      font-size: 13px;
      color: #999;
    }
  }
`

export const WriterWrapper = styled.div`
  
`

export const WriterTitile = styled.div`
  overflow:hidden;
  font-size: 14px;
  color: #969696;
  margin:20px 0;
`

export const WriterInfoSwitch = styled.div`
  float:right;
  cursor: pointer;
  .spin{
    margin-right: 5px;
  }
`

export const WriterInfoList = styled.div``

export const WriterInfoItem = styled.div`
  overflow:hidden;
  margin: 15px 0;
  .pic{
    display: inline-block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    vertical-align: middle;
  }
  .content{
    display: inline-block;
    margin-left: 15px;
    font-size: 14px;
    color: #333;
    vertical-align: middle;
    .desc{
      margin-top: 5px;
      font-size: 12px;
      color: #969696;
    }
  }
  .follow{
    float: right;
    margin-top: 5px;
    font-size:13px;
    color: #42c02e;
  }
`

export const WriterMore =styled.div`
  border:1px solid #dcdcdc;
  border-radius: 5px;
  padding: 7px 7px 7px 12px;
  text-align: center;
  color: #787878;
  background: #f7f7f7;
  font-size: 13px;
  cursor: pointer;
`

export const LoadMore = styled.div`
  width: 100%;
  height: 40px;
  line-height: 40px;
  margin: 30px;
  background: #a5a5a5;
  text-align: center;
  cursor: pointer;
  border-radius: 20px;
  color: #fff;
  font-size: 15px;
`
